<extend name="Public/base"/>

<block name="body">
	<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
    <div class="main-title">
        <h2>新增分类规格</h2>
    </div>
    <ul class="tab-nav nav">
		<li class="current" data-tab="tab1"><a href="javascript:void(0);">基础信息</a></li></li>	
	</ul>
    <form action="{:U()}" method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">规格名称<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" name="title" value="{$info['title']}">
            </div>
        </div>

        <div class="form-item cf">
            <label class="item-label">规格值<span class="check-tips"></span></label>
            <div class="controls">
                <label class="textarea input-large">
                        <textarea name="value">{$info['value']}</textarea>
                </label>
            </div>
        </div>

        <div class="form-item">
            <label class="item-label">所属分类<span class="check-tips"></span></label>
            <div class="controls">
                <input type="text" class="text input-large" value="{$pname}" disabled="false">
                <input type="hidden" name="pid" id="pid" value="{$info['pid']}">
            </div>
        </div>
        <div class="form-item">
            <label class="item-label">排序</label><span class="check-tips">（显示的顺序）</span>
            <div class="controls">
                <input type="text" class="text input-small" name="sort" value="{$info['sort']}">
            </div>
        </div>

        
        <input type="hidden" name="id" id="id" value="{$info['id']}" />
        <div class="form-item">
            <button class="btn submit-btn ajax-post" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('GoodsCategory/index')}');
    </script>
</block>